// --------------------------------------------------------------------------------
//
// GA Purse Expenses Manager
// Madrid, Spain
//
// --------------------------------------------------------------------------------
//  This file is part of Purse EM.
//
//  Purse EM isfree software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  Purse EM is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
//
// --------------------------------------------------------------------------------
//
// System : purse
// Sub-System : es.ga.purse.main.control
// File Name : ECategoryController.java
//
// Author : gonzalo
// Creation Date : Oct 14, 2011
//
// --------------------------------------------------------------------------------
package es.ga.purse.main.control;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import lombok.Getter;
import lombok.Setter;
import es.ga.purse.main.ExpensesCategory;

/**
 * @author gonzalo
 *
 */
@ManagedBean(name="categoryController")
@RequestScoped
public class ECategoryController implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8086507833053569511L;
	
	@Getter @Setter
	private ExpensesCategory current = new ExpensesCategory();
	
	public void persist()
	{
		this.current = new ExpensesCategory();
	}

}
